package com.wang.learn.common.domain;

/**
 * @author : wcz
 * @version V1.0
 * @Description: 规则接口
 */
public interface Specification<T> {

  boolean isSatisfiedBy(T t);

//  default boolean  and(T t,final Specification<T> other){
//    return this.isSatisfiedBy(t) && other.isSatisfiedBy(t);
//  }

}
